<?php if (!defined('BASE')) {die('No direct file access.');}

//********************************
//	File:		url_helper.php
//	Author:		Philip Pryce
//	Date:		22nd July 2008
//	Comments:	A helper designed to make writing views a little easier.
//********************************


// -------
// This generates URLs in the right style
// -------
function siteUrl ($path) {
	if (is_array($path)) {
		$path = implode("/", $path);
	}
	$path = WEBURL . '?' . $path;
	return $path;
}

// -------
// Simply returns the base of your Submind install.
// -------
function webRoot () {
	return WEBURL;
}

?>